This is done with mainly two purposes:
1. It makes the style sheets more legible. Background property, which is complex in itself, becomes all the more complex with color.
2. Color is an in-built property while the background is not one. And this can lead to a lot of confusion.
Posted Date:- 2021-08-21 11:08:32
State the difference between Style Sheet and HTML?
What are the media types allowed by CSS?
What is the usage of Class selector?
Why is it easy to insert a file by importing it?
Comment on the Case-sensitivity of CSS ?
What are navigation bars in CSS?
Write all the position states used in CSS.
Explain the concept of pseudo-elements in CSS.
How can we add icons to the web page?
How would you style an image or element to have rounded corners?
What are contextual selectors?
What is the use of box-shadow in CSS?
What are the advantages and disadvantages of embedded style sheets?
What are the ways to integrate CSS as a web page?
What is the difference between padding and margin?
Write all the properties of the flexbox.
Differentiate Style Sheet concept from HTML?
Differentiate logical tags from physical tags?
Why should background and color be used as separate properties?
Which property controls the image scroll in the background?
How can image repetition of the backup be controlled?
How can the background color of an element be changed?
Name a few CSS style components
What is the property that is used for controlling image-scroll?
What is the overflow property in CSS used for?
How will you target an h2 and h3 with the same styling?
What are the ways to assign a certain colour to an element in CSS?
What are the different ways you could integrate CSS into your HTML page?
State the benefits and disadvantages of Embedded Style Sheets?
What merits and disadvantages do External Style Sheets offer?
Who postulates the specifications of CSS?
Enlist the media types CSS allows?
In how many ways can a CSS be integrated as a web page?
How block elements can be centered with CSS1?
What are the advantages of CSS ?
How can we calculate specificity?
Explain the term Responsive web design.
What are the limitations of CSS ?
Explain the concept of Tweening.
What are the uses of an embedded style sheet?
Distinguish between CSS2 and CSS3.